package com.chenshu.shop.mapper;

import com.chenshu.shop.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-06-03
 * Time：16:35
 */
@Mapper
public interface UserMapper {
    public List<User> selectAllUsers();

    public Integer updateUser(@Param("id") Integer id, @Param("password") String password);

    public User selectUserById(Integer id);

    public Integer updateUserInfo(User user);

    public Integer deleteUser(Integer id);

    public Integer addUser(User user);

    public User selectUserByUsername(String username);
}
